package tsb.dominio.interfaces;

/**
 * @author Federico Gomez
 * @version 1.0
 * @created 12-Mar-2011 05:44:48 p.m.
 */
public abstract class FastEthernet extends InterfaceDeConeccion {

	/**
	 * true=duplex false=half-Duplex
	 */
	protected boolean duplex;
        protected MAC mac;

        

    protected boolean isDuplex() {
        return duplex;
    }

    protected void setDuplex(boolean duplex) {
        this.duplex = duplex;
    }

    protected MAC getMac() {
        return mac;
    }
    public boolean getEstado()
    {
        if(this.estado==true)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
    public int getAnchoDeBanda()
    {
        return this.anchoDeBanda;
    }
   public IP getSubNetMask()
   {
       return this.subnetMask;
   }
   public boolean getDuplex()
   {
       return this.duplex;
   }
   public IP getIp()
   {
        return ip;
   }


    protected void setMac(MAC mac) {
        this.mac = mac;
    }
    public void setEstado(boolean aux)
    {
        this.estado=aux;
    }
    
    public String toString()
    {
        String cad = super.toString()+
                "Duplex= "+duplex+" \n"+
                "MAC= "+mac+" \n";
        return cad;
    }

}